export default [
    {
        path: '/user',
        layout: false,
        routes: [{name: '登录', path: '/user/login', component: './User/Login'}],
    },
    {path: '/welcome', name: '欢迎', img: 'qd', component: './Welcome'},
    {
        path: '/admin',
        name: '管理页',
        img: 'ck',
        // 菜单过滤
        access: 'RouteFilter',
        routes: [
            {path: '/admin', redirect: '/admin/sub-page'},
            {path: '/admin/sub-page', name: '二级管理页', component: './Admin'},
            {path: '/admin/sub-page1', name: '二级管理页1', component: './Admin'},
        ],
    },
    {
        path: '/chatter',
        name: 'Chatters',
        img: 'ck',
        // 菜单过滤
        routes: [
            {path: '/chatter/list', name: 'All chatters', component: './chatters/Index'},
        ],
    },
    {
        path: '/models',
        name: 'Models',
        img: 'ck',
        // 菜单过滤
        routes: [
            {path: '/models/list', name: 'All models', component: './models/Index'},
        ],
    },
    {
        path: '/reports',
        name: 'Reports',
        img: 'ck',
        // 菜单过滤
        routes: [
            {path: '/reports/online/list', name: 'Chatter Online Report', component: './reports/OnlineIndex'},
            {path: '/reports/message/list', name: 'Chatter Message Report', component: './reports/MessageIndex'},
            // {path: '/reports/reward/list', name: 'Week Reward', component: './reports/WeekRewardIndex'},
            // {path: '/reports/reward/history', name: 'History Reward', component: './reports/HistoryRewardIndex'},
        ],
    },

    {
        name: '查询表格',
        img: 'rk',
        path: '/list',
        component: './TableList',
        // 菜单过滤
        access: 'RouteFilter',
    },
    {
        path: '/admin',
        name: '管理员',
        icon: 'TeamOutlined',
        access: 'RouteFilter',
        routes: [
            {
                path: '/admin/roleList',
                name: '角色管理',
                icon: 'dashboard',
                access: 'RouteFilter',
                component: './admin/roleList',
            },
            {
                path: '/admin/menu',
                name: '菜单管理',
                icon: 'dashboard',
                access: 'RouteFilter',
                component: './admin/menu',
            },
            {
                path: '/admin/userList',
                name: '账号管理',
                icon: 'smile',
                component: './admin/userList',
            },
        ],
    },
    {path: '/', redirect: '/welcome'},
    {path: '*', layout: false, component: './404'},
];
